<?php
class OptionsController extends AppController
{
    var $name='Options';
     //生成静态首页
   function admin_CreateIndex()
   {
        $indexfile=$this->requestAction('/html/index');
        if(file_put_contents('../../index.html',$indexfile))
            $this->flash('生成首页成功','-1',5);
       else
            $this->flash('生成首页失败','-1',5);
    }
} 
?>